package com.ygqh.baby.po;

import java.util.Date;

import com.foxinmy.weixin4j.util.StringUtil;
import com.ygqh.baby.ao.DataStatus;

public class YgUserOpen {
	private Long id;

	private String userName;

	private String password;

	private String nickName;

	private Integer gender;

	private String telPhone;

	private Integer babyGender;

	private Date babyBirthday;

	private String headImageUrl;

	private String openId;

	private String smallOpenId;

	private String uuid;

	private String sourceCode;
	private String groupTag;

	private DataStatus status;

	private Date createTime;

	private Date updateTime;

	private String salt;

	private String fromCode;

	private Integer level;

	private Boolean isGuide;

	public String getGroupTag() {
		return groupTag;
	}

	public void setGroupTag(String groupTag) {
		this.groupTag = groupTag;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName == null ? null : userName.trim();
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password == null ? null : password.trim();
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName == null ? null : nickName.trim();
	}

	public Integer getGender() {
		return gender;
	}

	public void setGender(Integer gender) {
		this.gender = gender;
	}

	public String getTelPhone() {
		return telPhone;
	}

	public void setTelPhone(String telPhone) {
		this.telPhone = telPhone == null ? null : telPhone.trim();
	}

	public Integer getBabyGender() {
		return babyGender;
	}

	public void setBabyGender(Integer babyGender) {
		this.babyGender = babyGender;
	}

	public Date getBabyBirthday() {
		return babyBirthday;
	}

	public void setBabyBirthday(Date babyBirthday) {
		this.babyBirthday = babyBirthday;
	}

	public String getHeadImageUrl() {
		return headImageUrl;
	}

	public void setHeadImageUrl(String headImageUrl) {
		if (StringUtil.isNotBlank(headImageUrl) && headImageUrl.startsWith("http://wx.qlogo.cn")) {
			this.headImageUrl = headImageUrl.trim().substring(0, headImageUrl.trim().lastIndexOf('/') + 1) + 132;
		} else {
			this.headImageUrl = headImageUrl == null ? null : headImageUrl.trim();
		}
	}

	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId == null ? null : openId.trim();
	}

	public String getUuid() {
		return uuid;
	}

	public void setUuid(String uuid) {
		this.uuid = uuid == null ? null : uuid.trim();
	}

	public String getSourceCode() {
		return sourceCode;
	}

	public void setSourceCode(String sourceCode) {
		this.sourceCode = sourceCode == null ? null : sourceCode.trim();
	}

	public DataStatus getStatus() {
		return status;
	}

	public void setStatus(DataStatus status) {
		this.status = status;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getSalt() {
		return salt;
	}

	public void setSalt(String salt) {
		this.salt = salt == null ? null : salt.trim();
	}

	public String getFromCode() {
		return fromCode;
	}

	public void setFromCode(String fromCode) {
		this.fromCode = fromCode == null ? null : fromCode.trim();
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public Boolean getIsGuide() {
		return isGuide;
	}

	public void setIsGuide(Boolean isGuide) {
		this.isGuide = isGuide;
	}

	public String getSmallOpenId() {
		return smallOpenId;
	}

	public void setSmallOpenId(String smallOpenId) {
		this.smallOpenId = smallOpenId;
	}

}